<h1>Upload ICalendar file (.ics) for User</h1>
<p>This will add free time slots to your profile</p>

<p><%= link_to 'Back', {:controller => 'endar_user', :action => 'new', :uid => @user.id} %></p>
<p></p><p></p>
<h1>File Upload</h1>
<%= form_tag ({:action => 'createICS', :id => @event.id, :userid => @user.id},  
                        :multipart => true) %>
<p><label for="upload_file">Select File</label> : 
<%= file_field 'upload', 'datafile' %></p>
<%= submit_tag "Upload" %>
<%= form_tag %>

<p>
	Testing if events are parsed correctly:
	<% @dummy -%>
	<li><% @timespanStart.to_s() -%></li>
	<li><% @timespanEnd.to_s() -%></li>
	<li><% @output -%></li>
</p>
<p><%= link_to 'Back', {:controller => 'endar_user', :action => 'show', :id => @event.id, :uid => @user.id} %></p>